import axios from 'axios';
import req from './req';
import res from './res';

const api = axios.create();

//请求拦截
api.interceptors.request.use(req.onFulfilled, req.onRejected);

//响应拦截
api.interceptors.response.use(res.onFulfilled, res.onRejected);

export default api;
